"""
Contain the Forms that will be used in the Contest.views.
"""

from cassebras.contest.models import Slope, Competitor

from django import forms

class CompetitorForm(forms.ModelForm):
    """
    A form that will be used to register Successfull Climbs of a 
    Competitor
    """
    class Meta:
        """
        Meta class used to indicate to form which model to refer to
        and which model fields to exclude from the Form
        """
        model = Competitor
        exclude = ('score', 'number')#, 'name', 'surname', 'category')
    climbed_slopes = forms.ModelMultipleChoiceField(
                                    queryset=Slope.objects.all(), 
                                    widget=forms.CheckboxSelectMultiple, 
                                    required=False)